<template>
  <view class="success-container">
    <image src="/static/icons/success.png" class="success-icon" mode="widthFix" />
    <text class="success-text">支付成功！</text>
    <button class="back-home-btn" @click="goHome">返回首页</button>
  </view>
</template>

<script setup>
const goHome = () => {
  uni.switchTab({ url: '/pages/home/index' });
};
</script>

<style scoped>
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.success-icon {
  width: 120rpx;
  height: 120rpx;
  margin-bottom: 20rpx;
}
.success-text {
  font-size: 36rpx;
  color: #333;
  margin-bottom: 30rpx;
}
.back-home-btn {
  width: 200rpx;
  height: 80rpx;
  line-height: 80rpx;
  text-align: center;
  background-color: #67c23a;
  color: #fff;
  border-radius: 40rpx;
}
</style>